<admintpl file="header" />
</head>
<body class="J_scroll_fixed">
	<div class="wrap J_check_wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Event/index')}">推送列表</a></li>
		</ul>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="30">ID</th>
					<th>赛事名称</th>
					<th>举办方</th>
					<th width="80">参赛球队</th>
					<th width="160">所属赛区</th>
					<th width="40">状态</th>
					<th width="70">开赛时间</th>
					<th width="30">操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="gameinfos" item="infos">
				<tr>
					<td>{$infos.id}</td>
					<td><a href="{:U('Games/index',array('gid'=>$infos['id']))}">{$infos.game_name}</a>（{$infos.player_type}）</td>
					<td>{$infos.host_title} - {$infos.host_field} - {$infos.other_partner}</td>
					<td><a href="{:U('Event/team',array('gid'=>$infos['id']))}">管理球队</a>({$infos.team_count})</td>
					<td><if condition="$infos['province'] && $infos['city'] && $infos['district']">
						{$infos.province} - {$infos.city} - {$infos.district}
					</if></td>
					<td>
					<if condition="$infos['status'] eq 50">
						<b style="color: red;">未启用</b>
					</if>
					<if condition="$infos['status'] eq 100">
						<b>开赛</b>
					</if>
					<if condition="$infos['status'] eq 200">
						<b style="color: blue;">已关闭</b>
					</if>
					</td>
					<td>{$infos.gamedate|substr= 0,10}</td>
					<td><a href='{:U("Event/edit",array("id"=>$infos["id"]))}'>修改</a></td>

				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>